package bean;

import java.io.Serializable;
import java.util.List;

import base.BaseBean;

public class CoursewareListBean extends BaseBean {
    @Override
    public String toString() {
        return "CoursewareListBean{" +
                "data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
//                ", time='" + time + '\'' +
                '}';
    }

    /**
     * data : {"select_type":"all","page":{"cpage":1,"total_page":1},"list":[{"courseware_id":1,"courseware_name":"高中信息选修课","courseware_type":1,"link":"http://abc.com","textbook_chapter_id":"23","teacher_id":7,"real_name":"李小龙","laud_num":0,"use_num":0,"share":1,"create_time":"2018-08-07 06:16:20","textbook_chapter_name":"圆1-第四章 章节"}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "select_type='" + select_type + '\'' +
                    ", page=" + page +
                    ", list=" + list +
                    '}';
        }

        /**
         * select_type : all
         * page : {"cpage":1,"total_page":1}
         * list : [{"courseware_id":1,"courseware_name":"高中信息选修课","courseware_type":1,"link":"http://abc.com","textbook_chapter_id":"23","teacher_id":7,"real_name":"李小龙","laud_num":0,"use_num":0,"share":1,"create_time":"2018-08-07 06:16:20","textbook_chapter_name":"圆1-第四章 章节"}]
         */

        private String select_type;
        private PageBean page;
        private List<ListBean> list;

        public String getSelect_type() {
            return select_type;
        }

        public void setSelect_type(String select_type) {
            this.select_type = select_type;
        }

        public PageBean getPage() {
            return page;
        }

        public void setPage(PageBean page) {
            this.page = page;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class PageBean {
            @Override
            public String toString() {
                return "PageBean{" +
                        "cpage=" + cpage +
                        ", total_page=" + total_page +
                        '}';
            }

            /**
             * cpage : 1
             * total_page : 1
             */

            private int cpage;
            private int total_page;

            public int getCpage() {
                return cpage;
            }

            public void setCpage(int cpage) {
                this.cpage = cpage;
            }

            public int getTotal_page() {
                return total_page;
            }

            public void setTotal_page(int total_page) {
                this.total_page = total_page;
            }
        }

        public static class ListBean implements Serializable{
            public ListBean(int courseware_id, String courseware_name, int courseware_type, String link, String textbook_chapter_id, int teacher_id, String real_name, int laud_num, int use_num, int share, String create_time,String view) {
                this.courseware_id = courseware_id;
                this.courseware_name = courseware_name;
                this.courseware_type = courseware_type;
                this.link = link;
                this.textbook_chapter_id = textbook_chapter_id;
                this.teacher_id = teacher_id;
                this.real_name = real_name;
                this.laud_num = laud_num;
                this.use_num = use_num;
                this.share = share;
                this.create_time = create_time;
                this.view= view;
            }

            @Override
            public String toString() {
                return "ListBean{" +
                        "courseware_id=" + courseware_id +
                        ", courseware_name='" + courseware_name + '\'' +
                        ", courseware_type=" + courseware_type +
                        ", link='" + link + '\'' +
                        ", textbook_chapter_id='" + textbook_chapter_id + '\'' +
                        ", teacher_id=" + teacher_id +
                        ", real_name='" + real_name + '\'' +
                        ", laud_num=" + laud_num +
                        ", use_num=" + use_num +
                        ", share=" + share +
                        ", create_time='" + create_time + '\'' +
                        ", textbook_chapter_name='" + textbook_chapter_name + '\'' +
                        '}';
            }

            /**
             * courseware_id : 1
             * courseware_name : 高中信息选修课
             * courseware_type : 1
             * link : http://abc.com
             * textbook_chapter_id : 23
             * teacher_id : 7
             * real_name : 李小龙
             * laud_num : 0
             * use_num : 0
             * share : 1
             * create_time : 2018-08-07 06:16:20
             * textbook_chapter_name : 圆1-第四章 章节
             */

            private int courseware_id;
            private String courseware_name;
            private int courseware_type;
            private String link;
            private String textbook_chapter_id;
            private int teacher_id;
            private String real_name;
            private String view;
            private int laud_num;
            private int use_num;
            private int share;
            private String create_time;
            private String textbook_chapter_name;

            public String getView() {
                return view;
            }

            public void setView(String view) {
                this.view = view;
            }

            public int getCourseware_id() {
                return courseware_id;
            }

            public void setCourseware_id(int courseware_id) {
                this.courseware_id = courseware_id;
            }

            public String getCourseware_name() {
                return courseware_name;
            }

            public void setCourseware_name(String courseware_name) {
                this.courseware_name = courseware_name;
            }

            public int getCourseware_type() {
                return courseware_type;
            }

            public void setCourseware_type(int courseware_type) {
                this.courseware_type = courseware_type;
            }

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }

            public String getTextbook_chapter_id() {
                return textbook_chapter_id;
            }

            public void setTextbook_chapter_id(String textbook_chapter_id) {
                this.textbook_chapter_id = textbook_chapter_id;
            }

            public int getTeacher_id() {
                return teacher_id;
            }

            public void setTeacher_id(int teacher_id) {
                this.teacher_id = teacher_id;
            }

            public String getReal_name() {
                return real_name;
            }

            public void setReal_name(String real_name) {
                this.real_name = real_name;
            }

            public int getLaud_num() {
                return laud_num;
            }

            public void setLaud_num(int laud_num) {
                this.laud_num = laud_num;
            }

            public int getUse_num() {
                return use_num;
            }

            public void setUse_num(int use_num) {
                this.use_num = use_num;
            }

            public int getShare() {
                return share;
            }

            public void setShare(int share) {
                this.share = share;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public String getTextbook_chapter_name() {
                return textbook_chapter_name;
            }

            public void setTextbook_chapter_name(String textbook_chapter_name) {
                this.textbook_chapter_name = textbook_chapter_name;
            }
        }
    }
}
